<script>
	import {mapActions} from "vuex";
	export default {
		methods:{
			...mapActions(["setUserInfo"])
		},
		onLaunch: function () {
			var userInfo=uni.getStorageSync("userInfo");
			if(userInfo){
				this.setUserInfo(userInfo);
				console.log("读取登陆信息成功");
			}
			else{
				console.log("没有登陆信息");
			}
			console.log('App Launch')
		},
		onShow: function () {
			console.log('App Show')
		},
		onHide: function () {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	page{
		height: 100%;
	}
</style>
